package week6;

import week6.jsjf.LinkedBinaryTree;

public class test<T> {
    public static void main(String[] args) {
        LinkedBinaryTree c=new LinkedBinaryTree("b");
        LinkedBinaryTree b=new LinkedBinaryTree("c");
        LinkedBinaryTree a=new LinkedBinaryTree("a",c,b);
        LinkedBinaryTree e=new LinkedBinaryTree("F");
        LinkedBinaryTree f=new LinkedBinaryTree("g",a,e);

        System.out.println(f.toString());
        System.out.println(f.contains("b"));
        System.out.println(f.contains("A"));
        a.removeLeftsubtree();
        System.out.println(f.toString());
        f.removeRightsubtree();
        System.out.println(f.toString());

        f.removeAllelement();

        System.out.println(f.toString());
    }
}
